package mya.mes.mdc.logic;

import mya.mes.mdc.share.api.MdcModule;
import mya.mes.mdc.share.api.MdcService;
import mya.mes.mdc.share.plc.PlcTagVoProcessor;
import mya.mes.mdc.share.vo.MdcOptions;

public class MdcServiceImpl implements MdcService {


    @Override
    public void addPlcTagVoProcessor(PlcTagVoProcessor processor) {

        MdcOptions mdcOptions = MdcModule.getInstance().getMdcOptions();
        mdcOptions.MQTT_RECEIVE_PROCESSOR.addPlcTagVoProcessor(processor);

    }

    @Override
    public void removePlcTagVoProcessor(PlcTagVoProcessor processor) {
        MdcOptions mdcOptions = MdcModule.getInstance().getMdcOptions();
        mdcOptions.MQTT_RECEIVE_PROCESSOR.removePlcTagVoProcessor(processor);
    }
}
